import React, { Component } from "react";
export function HocComp(Comp) {
  return class _ extends Component {
    componentDidMount() {
      console.log("22222222");
    }

    componentWillUnmount() {
      console.log("1111111");
    }

    render() {
      return <Comp />;
    }
  };
}
